package i_oStream.bufferedStream;

import java.io.*;

public class BufferedCharStream {
    public static void main(String[] args) throws IOException {
        //输入
        BufferedReader bd = new BufferedReader(new FileReader("D:\\develop\\程序\\JAVAFourDimension-master\\JAVAFourDimension\\src\\I_O\\bufferedStream\\a.txt"));
        String line;
        while ((line = bd.readLine()) != null) {
            System.out.println(line);
        }
        bd.close();
        //输出
        BufferedWriter bw = new BufferedWriter(new FileWriter("D:\\develop\\程序\\JAVAFourDimension-master\\JAVAFourDimension\\src\\I_O\\bufferedStream\\a.txt", true));
        bw.write("我真的好喜欢你！！！");
        bw.newLine();
        bw.close();
    }
}
